From: Keir Fraser Date: Tue, 4 May 2010 10:44:19 +0000 (+0100) Subject: xl: Add help for 'xl info' command X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~12291 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/%22bookmarks://%22/%22http:/www.example.com/cgi/%22https:/%22bookmarks:/%22?a=commitdiff_plain;h=3f7c998a0db7eb97cf236418564aedd6a4fc97a0;p=xen.git xl: Add help for 'xl info' command Signed-off-by: Yang Hongyang --- diff --git a/tools/libxl/xl_cmdimpl.c b/tools/libxl/xl_cmdimpl.c index 4315c5a5ee..27aa04a1e9 100644 --- a/tools/libxl/xl_cmdimpl.c +++ b/tools/libxl/xl_cmdimpl.c @@ -1173,6 +1173,9 @@ void help(char *command) } else if (!strcmp(command, "vcpu-set")) { printf("Usage: xl vcpu-set \n\n"); printf("Set the number of active VCPUs for allowed for the domain.\n\n"); + } else if(!strcmp(command, "info")) { + printf("Usage: xl info\n\n"); + printf("Get information about Xen host.\n\n"); } else if (!strcmp(command, "sched-credit")) { printf("Usage: xl sched-credit [-d [-w[=WEIGHT]|-c[=CAP]]]\n\n"); printf("Get/set credit scheduler parameters.\n"); @@ -2731,7 +2734,7 @@ int main_info(int argc, char **argv) while ((opt = getopt(argc, argv, "h")) != -1) { switch (opt) { case 'h': - help("vcpu-list"); + help("info"); exit(0); default: fprintf(stderr, "option `%c' not supported.\n", opt);